// src/router/elegant/business.ts
import type { ElegantConstRoute } from '@elegant-router/types';

export default {
  name: 'calc',
  path: '/calc',
  component: 'layout.base',
  meta: {
    title: 'route.calc',
    icon: 'clarity:calc-line',
    order: 7
  },
  children: [
    // 管桩单桩承载力计算
    {
      name: 'calc_pipePileBearingCalc',
      path: '/calc/pipe-pile-bearing-calc',
      component: 'view.calc_pipePileBearingCalc',
      meta: {
        title: 'route.calc_pipePileBearingCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 坡道抗浮（分组路由）
    {
      name: 'calc_rampAntiFloat',
      path: '/calc/ramp-anti-float',
      meta: {
        title: 'route.calc_rampAntiFloat',
        icon: 'mdi:chart-areaspline'
      },
      children: [
        // 无顶板
        {
          name: 'calc_rampAntiFloat_withoutSlab',
          path: '/calc/ramp-anti-float/without-slab',
          component: 'view.calc_rampAntiFloat_withoutSlab',
          meta: {
            title: 'route.calc_rampAntiFloat_withoutSlab',
            icon: 'hugeicons:flow-square'
          }
        },
        // 有顶板
        {
          name: 'calc_rampAntiFloat_withSlab',
          path: '/calc/ramp-anti-float/with-slab',
          component: 'view.calc_rampAntiFloat_withSlab',
          meta: {
            title: 'route.calc_rampAntiFloat_withSlab',
            icon: 'simple-icons:apacheecharts'
          }
        }
      ]
    },
    // 柱局压验算
    {
      name: 'calc_colLocalCompressChk',
      path: '/calc/col-local-compress-chk',
      component: 'view.calc_colLocalCompressChk',
      meta: {
        title: 'route.calc_colLocalCompressChk',
        icon: 'mdi:clipboard-outline'
      }
    },
    // 桩冲切计算
    {
      name: 'calc_pilePunchShearCalc',
      path: '/calc/pile-punch-shear-calc',
      component: 'view.calc_pilePunchShearCalc',
      meta: {
        title: 'route.calc_pilePunchShearCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 筏板抗剪计算
    {
      name: 'calc_raftSlabShearCalc',
      path: '/calc/raft-slab-shear-calc',
      component: 'view.calc_raftSlabShearCalc',
      meta: {
        title: 'route.calc_raftSlabShearCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 筏板裂缝计算
    {
      name: 'calc_raftSlabCrackCalc',
      path: '/calc/raft-slab-crack-calc',
      component: 'view.calc_raftSlabCrackCalc',
      meta: {
        title: 'route.calc_raftSlabCrackCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 肢墙计算（考虑墙身筋）
    {
      name: 'calc_wallWithRebar',
      path: '/calc/wall-with-rebar',
      meta: {
        title: 'route.calc_wallWithRebar',
        icon: 'mdi:chart-areaspline'
      },
      children: [
        // 1肢墙
        {
          name: 'calc_wallWithRebar_1Leg',
          path: '/calc/wall-with-rebar/1-leg',
          component: 'view.calc_wallWithRebar_1Leg',
          meta: {
            title: 'route.calc_wallWithRebar_1Leg',
            icon: 'hugeicons:flow-square'
          }
        },
        // 2肢L型
        {
          name: 'calc_wallWithRebar_2LegL',
          path: '/calc/wall-with-rebar/2-leg-l',
          component: 'view.calc_wallWithRebar_2LegL',
          meta: {
            title: 'route.calc_wallWithRebar_2LegL',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 2肢T型
        {
          name: 'calc_wallWithRebar_2LegT',
          path: '/calc/wall-with-rebar/2-leg-t',
          component: 'view.calc_wallWithRebar_2LegT',
          meta: {
            title: 'route.calc_wallWithRebar_2LegT',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 3肢
        {
          name: 'calc_wallWithRebar_3Leg',
          path: '/calc/wall-with-rebar/3-leg',
          component: 'view.calc_wallWithRebar_3Leg',
          meta: {
            title: 'route.calc_wallWithRebar_3Leg',
            icon: 'simple-icons:apacheecharts'
          }
        }
      ]
    },
    // 肢墙计算（不考虑墙身筋）
    {
      name: 'calc_wallNoRebar',
      path: '/calc/wall-no-rebar',
      meta: {
        title: 'route.calc_wallNoRebar',
        icon: 'mdi:chart-areaspline'
      },
      children: [
        // 1肢墙
        {
          name: 'calc_wallNoRebar_1Leg',
          path: '/calc/wall-no-rebar/1-leg',
          component: 'view.calc_wallNoRebar_1Leg',
          meta: {
            title: 'route.calc_wallNoRebar_1Leg',
            icon: 'hugeicons:flow-square'
          }
        },
        // 2肢L型
        {
          name: 'calc_wallNoRebar_2LegL',
          path: '/calc/wall-no-rebar/2-leg-l',
          component: 'view.calc_wallNoRebar_2LegL',
          meta: {
            title: 'route.calc_wallNoRebar_2LegL',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 2肢T型
        {
          name: 'calc_wallNoRebar_2LegT',
          path: '/calc/wall-no-rebar/2-leg-t',
          component: 'view.calc_wallNoRebar_2LegT',
          meta: {
            title: 'route.calc_wallNoRebar_2LegT',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 3肢Z型
        {
          name: 'calc_wallNoRebar_3LegZ',
          path: '/calc/wall-no-rebar/3-leg-z',
          component: 'view.calc_wallNoRebar_3LegZ',
          meta: {
            title: 'route.calc_wallNoRebar_3LegZ',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 3肢TL型
        {
          name: 'calc_wallNoRebar_3LegTL',
          path: '/calc/wall-no-rebar/3-leg-tl',
          component: 'view.calc_wallNoRebar_3LegTL',
          meta: {
            title: 'route.calc_wallNoRebar_3LegTL',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 3肢ZL型
        {
          name: 'calc_wallNoRebar_3LegZL',
          path: '/calc/wall-no-rebar/3-leg-zl',
          component: 'view.calc_wallNoRebar_3LegZL',
          meta: {
            title: 'route.calc_wallNoRebar_3LegZL',
            icon: 'simple-icons:apacheecharts'
          }
        },
        // 3肢TT型
        {
          name: 'calc_wallNoRebar_3LegTT',
          path: '/calc/wall-no-rebar/3-leg-tt',
          component: 'view.calc_wallNoRebar_3LegTT',
          meta: {
            title: 'route.calc_wallNoRebar_3LegTT',
            icon: 'simple-icons:apacheecharts'
          }
        }
      ]
    },
    // 剪力墙局压验算
    {
      name: 'calc_shearWallLocalPressChk',
      path: '/calc/shear-wall-local-press-chk',
      component: 'view.calc_shearWallLocalPressChk',
      meta: {
        title: 'route.calc_shearWallLocalPressChk',
        icon: 'ic:round-barcode'
      }
    },
    // 桩端下卧层验算
    {
      name: 'calc_pileTipUnderLayerChk',
      path: '/calc/pile-tip-under-layer-chk',
      component: 'view.calc_pileTipUnderLayerChk',
      meta: {
        title: 'route.calc_pileTipUnderLayerChk',
        icon: 'ic:round-barcode'
      }
    },
    // 女儿墙计算（分组路由）
    {
      name: 'calc_parapet',
      path: '/calc/parapet',
      meta: {
        title: 'route.calc_parapet',
        icon: 'mdi:chart-areaspline'
      },
      children: [
        // 砌体
        {
          name: 'calc_parapet_masonry',
          path: '/calc/parapet/masonry',
          component: 'view.calc_parapet_masonry',
          meta: {
            title: 'route.calc_parapet_masonry',
            icon: 'hugeicons:flow-square'
          }
        },
        // 砼
        {
          name: 'calc_parapet_concrete',
          path: '/calc/parapet/concrete',
          component: 'view.calc_parapet_concrete',
          meta: {
            title: 'route.calc_parapet_concrete',
            icon: 'simple-icons:apacheecharts'
          }
        }
      ]
    },
    // 天然地基软弱下卧层验算
    {
      name: 'calc_naturalFoundationSoftLayerChk',
      path: '/calc/natural-foundation-soft-layer-chk',
      component: 'view.calc_naturalFoundationSoftLayerChk',
      meta: {
        title: 'route.calc_naturalFoundationSoftLayerChk',
        icon: 'ic:round-barcode'
      }
    },
    // 多基础任意点沉降计算
    {
      name: 'calc_multiBaseSettlementCalc',
      path: '/calc/multi-base-settlement-calc',
      component: 'view.calc_multiBaseSettlementCalc',
      meta: {
        title: 'route.calc_multiBaseSettlementCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 墙体开洞等效荷载计算
    {
      name: 'calc_wallOpeningEquivLoadCalc',
      path: '/calc/wall-opening-equiv-load-calc',
      component: 'view.calc_wallOpeningEquivLoadCalc',
      meta: {
        title: 'route.calc_wallOpeningEquivLoadCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 地下室外墙侧壁计算
    {
      name: 'calc_basementWallLateralCalc',
      path: '/calc/basement-wall-lateral-calc',
      component: 'view.calc_basementWallLateralCalc',
      meta: {
        title: 'route.calc_basementWallLateralCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 桩土共同作用计算
    {
      name: 'calc_pileSoilInteractionCalc',
      path: '/calc/pile-soil-interaction-calc',
      component: 'view.calc_pileSoilInteractionCalc',
      meta: {
        title: 'route.calc_pileSoilInteractionCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 双扇防护门计算
    {
      name: 'calc_doubleBlastDoorCalc',
      path: '/calc/double-blast-door-calc',
      component: 'view.calc_doubleBlastDoorCalc',
      meta: {
        title: 'route.calc_doubleBlastDoorCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 梁计算（分组路由）
    {
      name: 'calc_beam',
      path: '/calc/beam',
      meta: {
        title: 'route.calc_beam',
        icon: 'mdi:chart-areaspline'
      },
      children: [
        // 暗梁
        {
          name: 'calc_beam_hidden',
          path: '/calc/beam/hidden',
          component: 'view.calc_beam_hidden',
          meta: {
            title: 'route.calc_beam_hidden',
            icon: 'hugeicons:flow-square'
          }
        },
        // 明梁
        {
          name: 'calc_beam_exposed',
          path: '/calc/beam/exposed',
          component: 'view.calc_beam_exposed',
          meta: {
            title: 'route.calc_beam_exposed',
            icon: 'simple-icons:apacheecharts'
          }
        }
      ]
    },
    // 抗水板水反力输入值计算
    {
      name: 'calc_waterSlabHydroInputCalc',
      path: '/calc/water-slab-hydro-input-calc',
      component: 'view.calc_waterSlabHydroInputCalc',
      meta: {
        title: 'route.calc_waterSlabHydroInputCalc',
        icon: 'ic:round-barcode'
      }
    },
    // 平板筏基柱下冲切验算
    {
      name: 'calc_raftBasePunchChk',
      path: '/calc/raft-base-punch-chk',
      component: 'view.calc_raftBasePunchChk',
      meta: {
        title: 'route.calc_raftBasePunchChk',
        icon: 'ic:round-barcode'
      }
    },
    // 锥形独立基础最小配筋率计算
    {
      name: 'calc_taperedBaseMinSteelCalc',
      path: '/calc/tapered-base-min-steel-calc',
      component: 'view.calc_taperedBaseMinSteelCalc',
      meta: {
        title: 'route.calc_taperedBaseMinSteelCalc',
        icon: 'ic:round-barcode'
      }
    }
  ]
} as ElegantConstRoute;
